<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>收货地址</title>
    <link rel="stylesheet" href="../../static/css/common/adaptor.css">
    <link rel="stylesheet" href="../../static/css/common/common.css">
    <link rel="stylesheet" href="../../static/css/me/address.css">
</head>
<body>
    <div class="layout">
        <div class="header"><span>收货地址</span>
            <div class="backArrow"></div>
        </div>
        <div class="loadingMarsk">
            <div class="loadingPic">
                <div class="rotatePic"><img src="../../static/img/1@3x.png" alt=""></div>
                <div class="centerPic"><img src="../../static/img/2@3x.png" alt=""></div>
            </div>
        </div>
        <div class="addressList">
            <!-- 动态渲染 -->
        </div>
        <div class="addAdressBtn">添加新地址</div>
        <div class="logoutMarsk">
            <div class="deltips">
                <div class="titleText">
                    <div class="title">提示</div>
                    <div class="text">是否删除</div>
                </div>
                <div class="btn clearfix">
                    <div class="sure">确认</div>
                    <div class="cancel">取消</div>
                </div>
            </div>
        </div>
        <div class="tips"></div>
    </div>
    <script type="text/template" id="addressList">
        {{each addressList as item index}}
        <div class="addressItem" data-addressId="{{item.id}}" data-regionId="{{item.regionId}}">
            <div class="addressMsg">
                <div class="personAndTel clearfix">
                    <div class="person" data-contcat="{{item.contact}}">收货人：{{item.contact}}</div>
                    <div class="tel" data-mobile="{{item.mobile}}">{{item.mobile}}</div>
                </div>
                <div class="address" data-region="{{item.region}}" data-address="{{item.address}}">收货地址：{{item.region}} {{item.address}}</div>
            </div>
            <div class="editAddress clearfix">
                <div class="adminAdd">
                    {{if item.default===true}}
                    <input type="hidden" value="1" class="hidden">
                    <label for=""><img src="../../static/img/ico_select@3x.png" alt=""></label><span>默认地址</span>
                    <input type="radio" name="adminAdress" class="input"> {{/if}} {{if item.default===false}}
                    <input type="hidden" value="0" class="hidden">
                    <label for=""><img src="../../static/img/ico_selectk@3x.png" alt=""></label><span>设为默认</span>
                    <input type="radio" name="adminAdress" class="input"> {{/if}}
                </div>
                <div class="editAndDel clearfix">
                    <span class="edit">编辑</span>
                    <span class="del">删除</span>
                </div>
            </div>
        </div>
        {{/each}} {{if addressList.length===0}}
        <div class="emptyAdress">
            <div class="addIcon"></div>
            <div class="addText">
                <div class="big">您还没有收货地址</div>
                <div class="small">点击底部按钮添加</div>
            </div>
        </div>
        {{/if}}
    </script>
    <script src="../../static/assets/jquery/jquery.min.js"></script>
    <script src="../../static/assets/fastclick/fastclick.js"></script>
    <script src="../../static/assets/art-template/template.js"></script>
    <script src="../../static/js/config/config.js"></script>
    <script src="../../static/js/me/address.js"></script>
</body>
</html>